import request from '@/utils/request'

// 查询运动库列表
export function listExercises(query) {
  return request({
    url: '/fitsculpt/exercises/list',
    method: 'get',
    params: query
  })
}

// 查询运动库详细
export function getExercises(exerciseId) {
  return request({
    url: '/fitsculpt/exercises/' + exerciseId,
    method: 'get'
  })
}

// 新增运动库
export function addExercises(data) {
  return request({
    url: '/fitsculpt/exercises',
    method: 'post',
    data: data
  })
}

// 修改运动库
export function updateExercises(data) {
  return request({
    url: '/fitsculpt/exercises',
    method: 'put',
    data: data
  })
}

// 删除运动库
export function delExercises(exerciseId) {
  return request({
    url: '/fitsculpt/exercises/' + exerciseId,
    method: 'delete'
  })
}
